import md5 from 'js-md5';

function md5_encode(value) {
  return md5(value)
}

function saveToken(access_token) {
  window.localStorage.setItem("access_token", access_token)
}

function getToken() {
  return window.localStorage.getItem("access_token")
}

export default {md5_encode, saveToken, getToken}
